#include <stdio.h>
#include <iostream>

using namespace std;

void obmen(int *x, int *y);

int main(void)
{
  int i, j;

  i = 7;
  j = 3;
  cout<< "i pered obmenom:"<< i << '\n';
  cout<< "j pered obmenom:"<< j << '\n';

  cout<<'\n';

  obmen(&i, &j);
  cout<< "i posle obmena:" << i << '\n';
  cout<< "j posle obmena:"<< j << '\n';

  return 0;
}

void obmen(int *x, int *y)
{
  int t;

  t = *x;
  *x = *y;
  *y = t;
}
